﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SysSurv.dtl
{
    [Serializable]
    class Survey
    {
        #region Attributes
        private long _i64Id;
        private string _strName;
        private List<Question> _lstQuestions;
        private User _usrUser;
        #endregion
        #region Properties
        public long i64Id
        {
            get { return _i64Id; }
            set { _i64Id = value; }
        }
        public string strName
        {
            get { return _strName; }
            set { _strName = value; }
        }
        public List<Question> lstQuestions
        {
            get { return _lstQuestions; }
            set { _lstQuestions = value; }
        }
        public User usrUser
        {
            get { return _usrUser; }
            set { _usrUser = value; }
        }
        #endregion
        #region Constructors
        public Survey() { }
        public Survey(string vName, List<Question> vQuestions, User vUser) {
            _strName = vName;
            _lstQuestions = vQuestions;
            _usrUser = vUser;
        }
        public Survey(long vId, string vName, List<Question> vQuestions, User vUser)
        {
            _i64Id = vId;
            _strName = vName;
            _lstQuestions = vQuestions;
            _usrUser = vUser;
        }
        #endregion
        public override string ToString()
        {
            return _strName;
        }
    }
}
